package fun.ipconfig.shopping.dao;

import fun.ipconfig.shopping.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author gtl
 */
@Mapper
public interface UserDetailsDao {
    /**
     * 获取用户
     * @param user
     * @return
     */
    UserEntity getUser(@Param("user") String user);

    /**
     * 添加用户
     * @param users
     * @return
     */
    int addUsers(@Param("users") List<UserEntity> users);
}
